def bubble_sort(lst):
    """
    冒泡排序
    :return:
    """
    for i in range(len(lst)):
        for j in range(len(lst) - 1 - i):
            if lst[j] > lst[j + 1]:
                lst[j], lst[j + 1] = lst[j + 1], lst[j]

    return lst
a = [90, 89, 91, 22, 39, 100, 6]
result = bubble_sort(a)
print(result)
